package com.liuyucheng.designpattern.桥接模式;

public abstract class Computer {
    //通过使用封装、聚合及继承等行为让不同的类承担不同的职责
    protected Brand brand;

    public Computer(Brand brand) {
        this.brand = brand;
    }

    public void info(){
        //自带品牌
        brand.info();
    }
}

